import axios from "../../utils/request.js"
export function bookData() {
    return axios({
        url: '/api/project/book',
        method: 'POST',
    })
}
export function episodeData() {
    return axios({
        url: '/api/project/episodenumber',
        method: 'POST',
    })
}
export function frienddataData(data) {
    return axios({
        url: '/api/project/frienddata',
        method: 'POST',
        data
    })
}
export function userData() {
    return axios({
        url: '/api/project/user',
        method: 'POST',
    })
}

export function userDataren(data) {
    return axios({
        url: '/api/project/userDataren',
        method: 'POST',
        data
    })
}
// 下载图片
export function basePicture(data) {
    return axios({
        url: '/api/project/basePicture',
        method: 'POST',
        headers: { // 传递formdata数据
            'Content-Type': 'multipart/form-data'
        },
        data // 值时formdata对象
    })
}

// 分集
export function toStoryDetail(params) {
    return axios({
        url: '/api/project/toStoryDetail',
        method: 'GET',
        params
    })
}
// 评论
export function toPingLun(params) {
    return axios({
        url: '/api/project/toPingLun',
        method: 'GET',
        params
    })
}
export function pingLunNumber(params) {
    return axios({
        url: '/api/project/pingLunNumber',
        method: 'GET',
        params
    })
}
export function findUser(params) {
    return axios({
        url: "/api/project/findUser",
        method: 'GET',
        params
    })
}
export function booktalk(params) {
    return axios({
        url: "/api/project/booktalk",
        method: 'GET',
        params
    })
}
export function addBooktalk(data) {
    return axios({
        url: '/api/project/addBooktalk',
        method: 'POST',
        data,
    })
}
export function findBook(params) {
    return axios({
        url: "/api/project/findBook",
        method: 'GET',
        params
    })
}
export function bookSort(params) {
    return axios({
        url: "/api/project/bookSort",
        method: 'GET',
        params
    })
}
// 上传录音
export function voiceUploading(data){
    return axios({
        url: '/api/project/voiceUploading',
        headers: {
            'Content-Type': 'multipart/form-data',
            // 'content-type': 'application/json'
        },
        method: 'POST',
        data,
    })
}

//登录的接口
export function interceptsed(data) {
    return axios({
        url: '/api/project/intercept',
        method: 'POST',
        data,
    })
}
export function userbookdu(data) {
    return axios({
        url: '/api/project/userbookduo',
        method: 'POST',
        data,
    })
}

export function getinterest(data) {
    return axios({
        url: '/api/project/getinterest',
        method: 'POST',
        data,
    })
}
export function Registered(data) {
    return axios({
        url: '/api/project/Registered',
        method: 'POST',
        data,
    })
}
export function Registereds(data) {
    return axios({
        url: '/api/project/Registereds',
        method: 'POST',
        data,
    })
}
export function addition(data) {
    return axios({
        url: '/api/project/addition',
        method: 'POST',
        data,
    })
}
export function addsbfriends(data) {
    return axios({
        url: '/api/project/addsbfriends',
        method: 'POST',
        data,
    })
}
export function expurgateFrie(data) {
    return axios({
        url: '/api/project/expurgateFrie',
        method: 'POST',
        data,
    })
}
//更新类型
export function typuzmiany(data) {
    return axios({
        url: '/api/project/typuzmiany',
        method: 'POST',
        data,
    })
}
export function typuzmianys(data) {
    return axios({
        url: '/api/project/typuzmianys',
        method: 'POST',
        data,
    })
}
// 查询用户是否是会员
export function chaxunTitle(data) {
    return axios({
        url: '/api/project/chaxunTitle',
        method: 'POST',
        data,
    })
}
export function buyQuan(data) {
    return axios({
        url: "/api/project/buyQuan",
        method: 'POST',
        data
    })
}
export function danjiBook(data) {
    return axios({
        url: "/api/project/danjiBook",
        method: 'POST',
        data
    })
}
export function quanBook(data) {
    return axios({
        url: "/api/project/quanBook",
        method: 'POST',
        data
    })
}
export function searchCont(data) {
    return axios({
        url: "/api/project/searchCont",
        method: 'POST',
        data
    })
}
// 我的故事添加
export function tianjia(data) {
    return axios({
        url: "/api/project/tianjia",
        method: 'POST',
        data
    })
}
// 我的故事渲染
export function dingStory(data) {
    return axios({
        url: "/api/project/dingStory",
        method: 'POST',
        data
    })
}
// 删除我的订阅
export function deletedingStory(data) {
    return axios({
        url: "/api/project/deletedingStory",
        method: 'POST',
        data
    })
}
// 拍照
export function uploadFile(data) {
    return axios({
        url: "/api/project/uploadFile",
        method: 'POST',
        data
    })
}





//购买Maco蛋
export function maneyMacop(data) {
    return axios({
        url: "/api/project/maneyMacop",
        method: 'POST',
        data
    })
}
//查询用户Maco蛋
export function numMaco(data) {
    return axios({
        url: "/api/project/numMaco",
        method: 'POST',
        data
    })
}
//总送好友
export function presentFriend(data) {
    return axios({
        url: "/api/project/presentFriend",
        method: 'POST',
        data
    })
}
//消费maco蛋
export function xiaofei(data) {
    return axios({
        url: "/api/project/xiaofei",
        method: 'POST',
        data
    })
}
//购买书

export function tupianType(data) {
    return axios({
        url: "/api/project/tupianType",
        method: 'POST',
        data
    })
}
//查询maco蛋
export function xiaofeiqu(data) {
    return axios({
        url: "/api/project/xiaofeiqu",
        method: 'POST',
        data
    })
}

// 哈哈哈哈
// 获取表情包图片；检测是否和也上方法跨域路径；
export function getExpression() {
    return axios({
        url: '/api/project/getExpression',
        method: 'GET'
    })
}
// 获取聊天数据；
export function getData() {
    return axios({
        url: '/api/project/getData',
        method: 'GET'
    })
}
// 存入表情包；
export function toExpression(data) {
    return axios({
        url: '/api/project/toExpression',
        method: 'POST',
        data
    })
}
// 存入聊天数据的接口；
export function writeData(data) {
    return axios({
        url: '/api/project/writeData',
        method: 'POST',
        data
    })
}

// 改用户信息
export function ChangeUser(data){
    return axios({
        url: '/api/project/ChangeUser',
        method: 'POST',
        data,
    })
}
// // 获取默认音乐；
export function musicData() {
    return axios({
        url: '/api/project/getDataMusic',
        method: 'GET'
    })
}
// // 获取歌词
export function musicText() {
    return axios({
        url: '/api/project/getText',
        method: 'GET'
    })
}

